package com.blog.pojo;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;



public class Comment implements Serializable{
	/**
	 * 评论实体
	 */
	private static final long serialVersionUID = -6590417508130914667L;
	private Integer id; // 编号
	private User user;//用户  对应userId
	private String userIp; // 用户IP
	private String content; // 评论内容
	private Blog blog; // 被评论的博客  对应blogId
	@JSONField (format="yyyy-MM-dd HH:mm:ss") 
	private Date commentDate; // 评论日期
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public String getUserIp() {
		return userIp;
	}
	public void setUserIp(String userIp) {
		this.userIp = userIp;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Blog getBlog() {
		return blog;
	}
	public void setBlog(Blog blog) {
		this.blog = blog;
	}
	public Date getCommentDate() {
		return commentDate;
	}
	public void setCommentDate(Date commentDate) {
		this.commentDate = commentDate;
	}
	
}
